﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracion.master" AutoEventWireup="true"
    CodeFile="ModificacionProductos.aspx.cs" Inherits="Productos_Administracion_ModificacionProductos" %>
<%@ Register TagPrefix="ajaxToolkit" Namespace="AjaxControlToolkit.HTMLEditor" Assembly="AjaxControlToolkit, Version=4.1.60623.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <asp:Label ID="Label9" runat="server" Text="Alta de Producto" meta:resourcekey="lblAltaProducto" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <fieldset style="width: 80%">
        <legend style="text-align: left">
            <asp:Label ID="Label1" runat="server" Text="Información del Producto" meta:resourcekey="lblInfoProducto" /></legend>
        <table>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label10" runat="server" Text="Titulo" meta:resourcekey="lblTitulo" />
                </td>
                <td style="width: 85%" colspan="3">
                    <asp:TextBox ID="txtTitulo" runat="server" Width="100%"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:CheckBox ID="chkActivo" runat="server" meta:resourcekey="lblProductoActivo"
                        Text="Producto Activo" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:CheckBox ID="chkSobreescribirFotos" runat="server" meta:resourcekey="lblSobreesFotos"
                        Text="Sobreescribir Fotos" Visible="False" Checked="True"/>
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <div style="width: 100%; margin: auto; text-align: center">
                        <div style="width: 33%; border: solid black 1px; float: left">
                            <asp:Image ID="fotoUno" runat="server" ImageUrl="~/img/cocheNegro.png" Width="179"
                                Height="179" /></div>
                        <div style="width: 33%; border: solid black 1px; float: left">
                            <asp:Image ID="fotoDos" runat="server" ImageUrl="~/img/cocheNegro.png" Width="179"
                                Height="179" /></div>
                        <div style="width: 33%; border: solid black 1px; float: left">
                            <asp:Image ID="fotoTres" runat="server" ImageUrl="~/img/cocheNegro.png" Width="179"
                                Height="179" /></div>
                    </div>
                </td>
            </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label2" runat="server" Text="Foto" meta:resourcekey="lblFoto" />&nbsp;1
                        </td>
                        <td colspan="3">
                            <asp:FileUpload ID="fuFotoUno" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label17" runat="server" Text="Foto" meta:resourcekey="lblFoto" />&nbsp;2
                        </td>
                        <td colspan="3">
                            <asp:FileUpload ID="fuFotoDos" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="Label18" runat="server" Text="Foto" meta:resourcekey="lblFoto" />&nbsp;3
                        </td>
                        <td colspan="3">
                            <asp:FileUpload ID="fuFotoTres" runat="server" />
                        </td>
                    </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label4" runat="server" Text="Tipo" meta:resourcekey="lblTipo" />
                </td>
                <td style="width: 35%">
                    <asp:DropDownList ID="ddlTipo" runat="server" Width="100">
                    </asp:DropDownList>
                </td>
                <td style="width: 15%">
                    <asp:Label ID="Label3" runat="server" Text="Uso" meta:resourcekey="lblUso" />
                </td>
                <td style="width: 35%">
                    <asp:DropDownList ID="ddlUso" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label5" runat="server" Text="Marca" meta:resourcekey="lblMarca" />
                </td>
                <td style="width: 35%">
                    <asp:DropDownList ID="ddlMarca" runat="server" OnSelectedIndexChanged="ddlMarca_SelectedIndexChanged"
                        AutoPostBack="True">
                    </asp:DropDownList>
                </td>
                <td style="width: 15%">
                    <asp:Label ID="Label6" runat="server" Text="Modelo" meta:resourcekey="lblModelo" />
                </td>
                <td style="width: 35%">
                    <asp:UpdatePanel ID="upMarcaModelo" runat="server">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="ddlMarca" EventName="SelectedIndexChanged" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:DropDownList ID="ddlModelo" runat="server">
                            </asp:DropDownList>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label7" runat="server" Text="Año" meta:resourcekey="lblAnio" />
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtAnio" runat="server" Width="30" Enabled="False" BorderColor="transparent" />
                    <asp:ImageButton ID="btnAnioUp" runat="server" ImageUrl="~/img/upButton.png" />
                    <asp:ImageButton ID="btnAnioDown" runat="server" ImageUrl="~/img/downButton.png" />
                </td>
                <td style="width: 15%">
                    <asp:Label ID="Label8" runat="server" Text="Combustible" meta:resourcekey="lblCombustible" />
                </td>
                <td style="width: 35%">
                    <asp:DropDownList ID="ddlCombustible" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label11" runat="server" Text="Prestaciones" meta:resourcekey="lblPrestaciones" />
                </td>
                <td style="width: 35%">
                    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnEliminar" EventName="click" />
                            <asp:AsyncPostBackTrigger ControlID="btnAgregar" EventName="click" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:ListBox ID="lbPrestaciones" runat="server" Width="100%"></asp:ListBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                </td>
                <td colspan="2">
                    <asp:ImageButton ID="btnEliminar" runat="server" ImageUrl="~/img/delete.png" OnClick="btnEliminar_Click" />
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <Triggers>
                            <asp:AsyncPostBackTrigger ControlID="btnAgregar" EventName="click" />
                        </Triggers>
                        <ContentTemplate>
                            <asp:TextBox ID="txtPrestacion" runat="server"></asp:TextBox>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <asp:ImageButton ID="btnAgregar" runat="server" ImageUrl="~/img/add.png" OnClick="btnAgregar_Click" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <asp:Label ID="Label12" runat="server" Text="Descripción" meta:resourcekey="lblDescripcion" />
                </td>
            </tr>
            <tr>
                <td colspan="4">
                    <ajaxToolkit:Editor ID="txtDescripcion" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label13" runat="server" Text="Precio" meta:resourcekey="lblPrecio" />
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtPrecio" runat="server"></asp:TextBox>
                </td>
                <td style="width: 15%">
                    <asp:Label ID="Label14" runat="server" Text="Financiacion" meta:resourcekey="lblFinanciacion" />
                </td>
                <td style="width: 35%">
                    <asp:DropDownList ID="ddlFinanciacion" runat="server" />
                </td>
            </tr>
            <tr>
                <td style="width: 15%">
                    <asp:Label ID="Label15" runat="server" Text="Gastos Admin." meta:resourcekey="lblGastosAdmin" />
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtGastosAdmin" runat="server"></asp:TextBox>
                </td>
                <td style="width: 15%">
                    <asp:Label ID="Label16" runat="server" Text="Gastos Gest." meta:resourcekey="lblGastosGest" />
                </td>
                <td style="width: 35%">
                    <asp:TextBox ID="txtGastosGest" runat="server"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
    <div style="text-align: right; width: 80%">
        <asp:Button ID="btnGuardar" runat="server" Text="Guardar" OnClick="btnGuardar_Click"
            meta:resourcekey="btnGuardar" />
        <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" meta:resourcekey="btnCancelar"
            OnClick="btnCancelar_Click" />
    </div>
    <div style="width: 80%">
        <asp:ValidationSummary ForeColor="Red" ID="validacionPerfiles" runat="server" />
    </div>
    <ajaxToolkit:NumericUpDownExtender ID="txtAnio_NumericUpDownExtender" runat="server"
        TargetControlID="txtAnio" TargetButtonDownID="btnAnioDown" TargetButtonUpID="btnAnioUp">
    </ajaxToolkit:NumericUpDownExtender>
</asp:Content>
